﻿using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;
using CrateMayhem.Common.Controls;
using CrateMayhem.Desktop.Common;

namespace CrateMayhem.Desktop.Controls
{
    public class Worker : Border, IWorker
    {
        private static readonly Brush brush;
        private static readonly Brush borderBrush;

        public Worker()
        {
            DefaultStyleKey = typeof (Worker);
            CornerRadius = new CornerRadius(20);
            BorderThickness = new Thickness(1);
            Width = 20;
            Height = 20;
            Background = brush;
            BorderBrush = borderBrush;
        }

        static Worker()
        {
            brush = Common.Resources.GameStyles.Get<Brush>("WorkerBackgroundBrush");
            borderBrush = Common.Resources.GameStyles.Get<Brush>("WorkerBorderBrush");
        }
    }
}